package com.shj.em.biz.finance.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.shj.em.biz.finance.entity.Receipt;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 开票信息 服务类
 *
 * @author Shen Huang Jian
 * @since 2018-07-14
 */
public interface ReceiptService extends IService<Receipt> {

    /**
     * 分页查询
     * @return
     */
    Page<Receipt> queryReceiptPage(Map<String, Object> params);

    String createReceipt(Receipt receipt);

    String updateReceipt(Receipt receipt);

    Map<String, BigDecimal> getTotalReceiptAmount(Map<String, Object> params);

    boolean canAddReceipt(Long orderId);

    List<Receipt> getReceiptsByOrderId(Long orderId);
}
